package by.cooker.chat.logic.listeners;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import by.cooker.chat.gui.Window;

/**
 * @author cooker
 */
public class ClearAction extends AbstractAction
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Window window = null;

	/**
	 * Constructor.
	 * 
	 * @param window
	 *            owner window.
	 */
	public ClearAction(Window window)
	{
		this.window = window;
	}

	@Override
	public void actionPerformed(ActionEvent e)
	{
		window.getMessagesArea().setText(null);
	}
}
